package com.imooc.imoocbilibili.enums;

import lombok.Getter;

@Getter
public enum ErrorResultEnum {

    SERVER_ERROR(10000, "服务器异常"),
    NEED_LOGIN(10001, "未登录, 请先登录"),
    TOKEN_EXPIRED(10002, "token过期,请重新登录"),
    INVALID_TOKEN(10003, "无效的token"),

    PARAM_ERROR(20001, "参数不正确"),


    ;

    private final Integer code;

    private final String message;

    ErrorResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
